<?php
/**
 * Created by 项目.
 * User: xuguopeng
 * Date: 2020-06-18
 * Time: 11:43
 */

namespace app\api\validate\project;


use app\api\validate\BaseValidate;

class CheckHatchComment extends BaseValidate
{
    protected $rule = [
        'project_hatch_id' => 'require|isPositiveInteger',
        'star_number' => 'require|in:1,2,3,4,5',
        'content' => 'require|max:255'
    ];

    protected $message = [
        'project_hatch_id' => '请选择项目',
        'star_number' => '请选择星级',
        'content' => '请输入评价内容且长度不大于255'
    ];
}